<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add subcategory</title>
</head>
<body>
<%@include file="logoheader.jsp" %>
<%
String category_id=request.getParameter("category_id");
System.out.println(category_id);
int c=Integer.parseInt(category_id);
%>

<form action="addsubcat">
<table>
<tr><td>
<td><input type="hidden" name="category_id" value="<%=c%>"/>
<tr><td>
Subcategory name:
<td><input type="text" name="subcategory_name"/>
</table>
<input type="submit" value="Submit"/>
</form>
<br>
<br>
<a href="showsubcat?category_id=<%=c%>">See all subcategories of this category </a>

</body>
</html>